package top.itbook.shop;

/**
 * 系统商城实现类
 */
public class ShopArmor extends Armor{
    // 无参构造器
    public ShopArmor(){
        super();
    }

    // 有参构造器
    public ShopArmor(String name,int defense,int money){
        super(name,defense,money);
    }

    // 有参构造器
    public ShopArmor(String name,int defense,int money,String info){
        super(name,defense,money,info);
    }

    // 有参构造器
    public ShopArmor(String name,int defense,int money,String info,boolean state){
        super(name,defense,money,info,state);
    }

    public void getArmor(Armor armor){
        System.out.println("******************************");
        System.out.println("防具名：" + armor.getName());
        System.out.println("防御值：" + armor.getDefense());
        System.out.println("价格：" + armor.getMoney());
        System.out.println("介绍：" + armor.getInfo());
        System.out.println("******************************");
    }
}
